package cn.group.mapper;

import pojo.entity.Role;
import pojo.entity.RoleManager;
import pojo.entity.RolePermission;
import pojo.qo.RolePermissionQO;

import java.util.List;

public interface RoleManagerMapper {

    int addRole(RolePermissionQO rolePermissionQO);

    int addRoleMessage(Role role);

    int updateRole(Role role);

    int deleteRole(Long roleId);

    List showRoleList();

    Role showRole();

    int addRolePermission(List<RolePermission> rolePermissions);

    Role showRoleById(Long id);

    List<RolePermission> showRoleByIdPermission(Long id);

    int updateRolePermission(List<RolePermission> rolePermissions);

    int deletePermission(Long roleId);

    Long[] ff(Long roleId);
}
